import request from '@/utils/request'

export function fetchStockInList(params) {
  return request({
    url: '/stockIn',
    method: 'get',
    params
  })
}

export function listNoPage() {
  return request({
    url: '/stockIn/listNoPage',
    method: 'get'
  })
}


export function createStockIn(data) {
  return request({
    url: '/stockIn',
    method: 'post',
    data
  })
}

export function updatestockIn(data) {
  return request({
    url: `/stockIn`,
    method: 'put',
    data
  })
}

export function deletestockIn(id) {
  return request({
    url: `/stockIn/${id}`,
    method: 'delete'
  })
}
